const userModel = require('../model/userModel');

module.exports.insert = async function(user){
    return await userModel.create(user);
}

module.exports.findByUsernameAndPwd = async function(user){
    return await userModel.find(user);
}